package com.partners.constant;

/**
 * @author liangyongle
 * @date 2018-12-22
 */
public enum PermissionEnum implements Permission {
    MANAGER_HANDEL(10001,"人员管理"),
    ROLE_HANDEL(10002,"角色管理"),
    PERMISSION_HANDEL(10003,"权限管理"),
    RECORDS_HANDEL(10004,"报备管理"),
    POINTS_HANDEL(10005,"积分商城"),
    VERIFICATION_HANDEL(10006,"核销管理"),
    TASK_HANDEL(10007,"任务管理"),


    /*用户管理*/
    ADD_USER(10101,"新增用户"),
    EDIT_USER(10102,"编辑用户"),
    DELETE_USER(10103,"删除用户"),
    ROLE_ADD(10104,"新增角色"),
    ROLE_LIST(10107,"获取角色列表"),
    ROLE_EDIT(10105,"编辑角色"),
    ROLE_DETAIL(10108,"获取角色详情"),
    ROLE_DELETE(10106,"删除角色"),

    /*客户管理*/
    GET_ORDER_CUSTOMER(10201,"查看所有的客户列表"),
    GET_CUSTOMER_DETAIL(10202,"查看客户详情"),


    /*系统管理*/
    CONFIG_DETAIL(10301,"查看系统设置"),
    CONFIG_EDIT(10302,"编辑系统设置"),
    PERMISSION_LIST(10304,"获取权限列表"),
    ALL_CUSTOMER_LIST(10401,"获取所有报备列表"),


    GROUP_LIST(10109,"分组管理"),
    GROUP_EDIT(10110,"分组编辑"),
    MY_USER(10803,"我的合伙人"),
    //USER_CENTER(10112,"用户中心"),












    MY_CUSTOMER_LIST(11002,"获取我旗下的报备列表"),
    ADD_CUSTOMER(11003,"新增报备"),


    PRODUCT_LIST(10501,"获取产品列表"),
    PRODUCT_EDIT(10503,"编辑产品"),
    PRODUCT_RECOMMEND(10504,"推荐积分"),
    PRODUCT_EXCHANGE(10505,"兑换产品"),
    PRODUCT_VERIFY(10506,"核销兑换"),
    ALL_POINTS(10507,"查看所有的积分列表"),
    MY_POINTS(10508,"查看员工的积分列表"),




    TASK_LIST(10701,"任务列表"),
    TASK_DETAIL(10702,"任务详情"),
    TASK_EDIT(10703,"任务编辑"),

    EXCHANGE_LIST(10801,"获取兑换列表"),
    ADDRESS_EDIT(10802,"地址编辑"),




    CREATE_ORDER(11101,"优惠开单"),
    VERIFICATION_COUPON(11102,"核销优惠券"),









    SEE_ALL_USER(10006,"查看所有合伙人"),
    SEE_MY_USER(10007,"查看我的合伙人"),

    ;

    /**  编号 */
    private Integer code;

    /**  信息 */
    private String name;

    PermissionEnum(Integer code,String name){
        this.code = code;
        this.name = name;
    }


    @Override
    public Integer getCode() {
        return this.code;
    }

    public void setCode(Integer code){
        this.code = code;
    }

    @Override
    public String getName() {
        return null;
    }

    public void setName(String name){
        this.name = name;
    }
}
